function e(e) {
    return Object.keys(e).sort().map(function(r) {
        return r + "=" + e[r];
    }).join("&");
}

function r() {
    var r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e(r = Object.assign({}, r, {
        timestamp: Math.floor(Date.now() / 1e3),
        platform: i
    })), a = (0, o.default)(t + s);
    return n({
        sign: a,
        method: u
    }, r);
}

function t() {
    var e = Math.floor(Date.now() / 1e3);
    return {
        token: (0, o.default)(s + e),
        platform: i,
        createtime: e
    };
}

function a(t) {
    return e(r(t));
}

Object.defineProperty(exports, "__esModule", {
    value: !0
});

var n = Object.assign || function(e) {
    for (var r = 1; r < arguments.length; r++) {
        var t = arguments[r];
        for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
    }
    return e;
};

exports.serialize = e, exports.generateSignParams = r, exports.generateHeaderParams = t, 
exports.generateSignParamsStr = a;

var o = function(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}(require("../lib/md5.min.js")), s = "c3a39e4eeacf4542d6a488e19037fa45", i = "web", u = "md5";

exports.default = {
    generateSignParams: r,
    generateHeaderParams: t,
    generateSignParamsStr: a
};